package rs.api;

import rs.Boss;
import rs.Task;

public class Add {
	
	/**
	 * 添加一个任务.
	 * @param url 链接地址
	 * @param jobId 对应的job描述或project描述id.
	 * @param jobOrProject 是job还是Project;取值job或project;
	 * @param tag 
	 */
	public void addJob(String url, String jobId, String jobOrProject, String tag){
		Task task = new Task(url, jobId, jobOrProject, tag);
		Boss.getProjectManager().addTask(task);
	}

}
